package server.command;

import java.util.List;

import org.apache.mina.core.session.IoSession;

import server.IDispatcher;

public abstract class Command {

	protected static Command	instance	= null;

	public static Command getInstance() {
		return instance;
	}

	public abstract void execute(IoSession session, List<String> parameters, IDispatcher dispatcher);

	@Override
	protected Command clone() throws CloneNotSupportedException {
		throw new CloneNotSupportedException("Clone is not allowed!");
	}
}
